package com.xnyzc.lhy.task.config;

import com.xnyzc.lhy.common.constant.CommonConstant;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @Description:
 * @Author: scootXin
 * @Date: 2019/4/23 14:36
 */
public class TokenRequestInterceptor implements RequestInterceptor {
    private final String headerValue;

    public TokenRequestInterceptor(String token) {
        this.headerValue = "";
    }

    public void apply(RequestTemplate template) {
        template.header(CommonConstant.REQ_HEADER, new String[]{this.headerValue});
    }
}
